import request from "@/utils/request";
/**
 * 权限接口
 */

//菜单列表
export const list = () => {
  return request.post("/manage/menu/query_all");
};

//更新菜单
export const update = params => {
  return request.post("/manage/menu/edit", params);
};

//新增菜单
export const add = params => {
  return request.post("/manage/menu/add", params);
};

//删除菜单
export const delMenu = id => {
  return request.post("/manage/menu/delete?id=" + id);
};
